package com.qidianit.mes.sys.mapper;

import com.qidianit.mes.pojo.Supplier;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;


/**
 * @Description:
 * @Author: shanzhe
 * @Date: 2025/9/16 - 19:35
 */
@Mapper
public interface SupplierMapper {
    ArrayList<Supplier> selectSuppliersByConditionsWithPaging(@Param("code") String code,
                                                             @Param("name") String name,
                                                             @Param("status") Integer status,
                                                             @Param("pageNum") Integer pageNum,
                                                             @Param("size") Integer size);
    Supplier selectSupplierByCode(@Param("code") String code);

    int addSupplier(Supplier supplier);

    int updateSupplierById(Supplier supplier);

    int deleteSupplierById(@Param("id") Integer id);


}
